package StudyCode.summary.Basic.mylong;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class LongToBasic {
	public static void main(String[] args) {
		Long data = new Long("110");
		byte b = data.byteValue();
		System.out.println("Long 转为 byte:");
		System.out.println(b);

		short s = data.shortValue();
		System.out.println("Long 转为 short:");
		System.out.println(s);

		int i = data.intValue();
		System.out.println("Long 转为 int:");
		System.out.println(i);

		float f = data.floatValue();
		System.out.println("Long 转为 float:");
		System.out.println(f);

		double d = data.doubleValue();
		System.out.println("Long 转为 double:");
		System.out.println(d);
	}
}
